package com.wzq.dao.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

/**
 * <p>
 *
 * </p>
 *
 * @author pzm
 * @since 2022-08-31
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("t_message")
public class Message implements Serializable {


    private static final long serialVersionUID = 1L;
    /**
     * id 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 外键
     */
    private Integer w_id;           //发起方
    /**
     * 外键
     */
    private Integer w_id_down;      //接收方
    /**
     * 外键
     */
    private Integer p_id;
    /**
     * 通知名称
     */
    private String name;
    /**
     * 时间
     */
    private String time;
    /**
     * 是否已读
     */
    private Integer isread;
    /**
     * 是否删除
     */
    private Integer isdelete;
    /**
     * 消息类型
     */
    private Integer type;
    /**
     * 管理员回复
     */
    private String reply;

    private Integer operation;

    @TableField(exist = false)
    private String p_type;
    @TableField(exist = false)
    private String w_name;
    @TableField(exist = false)
    private String p_name;

}
